public void setUp() throws Exception {
        try {
            d = new Database("dbauth.txt");
            /*d = new Database("localhost", "postgres", "", "myapp_test"); //For travis-ci*/
            try {
                d.initTables();
            }
            catch(Exception e) {
                d.cleanTables();
                d.initTables();
            }
        } catch(Exception e) {
            e.printStackTrace();
            throw new Exception("Error setting up database connection");
        }
    }