fixed database bug
bug fixes, removed debugging texts