attempt to get this working with dynamic database, user and passwords.