build the database and populated it with mock