fixed dbhelper (better and faster way)