Extracted out username, db and password to make them params