Changed DBWrapper with singleton model.