Fixed accessAttribute in Database.cpp (I think).