fixed printout bug in databasehandler