you would need a recordset that returns the value from the database, then use the Set Session Value behavior (Click the plus button on the Server Behaviors panel and select eCart -> General -> Set Session Value) to store the tax rate in a session variable.
in your tax rule, set the Flat rate tax to use:
$_SESSION['sessionName']
where sessionName is the name of the session variable.