defined the database structure.