Update database name form URL

Fix database update from URL parameters (for example when user follows reset password link)