defined the database schema