bug with adding single quote fixed. Updated the way DBHelper operates with database