created database schema and models