Fixed database open method
Merge branch 'master' of https://github.com/Lichtso/Omnia