contructing DB