Get the database timeout value from settings when connecting to the master database.