fix db_create bug