Create database model