Fixes to make the databasemanager work properly in a localhost-environment (separate from filesync)