setup for database model