Cleaner way to set database host