Make db connection string more robust