Finished database model