Adding task helper classes
Update and fix debug log
Add one more implode function
Fix database and sql query stuff