fixed UsersDao exists method which had bad sql grammar