Fixed prechecking of database and key files

There was a bug hidden by the autoload function of the default database.
Fixed opening new database

On the password groups page there was the busy inicator wrongly shown forever when a new keepass database was created.