Modified DB a bit and added SQL to pull tasks.