added database model and creation script