make userpwd optional in getConnection()