simplified the db model