Sets up database and testing framework