Read database connection parameters from config file.
Re-connect to accounts if connection is lost.