Changed the way tasks events are represented in the database. Store relevant calendar id in database.
Updated SQL structure.