Added feature to check and load appropriate database configuration based on whether we are on remote or local server