created tables and models