DatabaseAccess bugfix

was trying to read from before the ResultSet