Fix for Task ID in the database

Getting the task id using the method gettask and gettaks in DBOpenHelper
is fixed