added method 'verifyUser' to databaseclass