Development of the DB layer