finishing implementing db_prefix