updated db_creation