fix for db_type