fixed db_schema bugs