correctly get the database (if it was not created during the connection process we need to create it)
Update Issue 366
Tagging user database version with the running Qt version.
This is required for the password hashing.
Check compatibility with database/running Qt versions.