Fixed sloppy usage of Database::selectField() in getPreviousRevisionID() and getNextR...