Updated ticker to be more event-driven. Now we schedule actions instead of polling the db every second.