add db method to manipulate tasks