creating database models
implemented the database models