I'd like to not require fancy/custom logic for various DB's (within reason) - there's a $g_db->dbtype or similar function to return the db backend, which is probably better wrapped into a switch() statement if there are particular queries that are fairly custom