Added encoding settings for db.