A warehouse database model using ORM