Add mechanism to check database version on login