removed unicode, and added db abstraction