dynamically obtains the default user connecting to the database