Fix DB connection encoding

Fix #114