Move common sqlite-code to shared-folder
Make sure we're connected to db, and use correct formatstrings
Merge branch 'master' of github.com:Lingonsylt/docloud