Added DB Function to get all tasks