Added database model, scripts