Define database encoding in params