Fixed db and config to work for both local and remote host