Added debug.writeline in db-methods