changed db host and added more logging options