construct database schema2