get database to build