Clean out task resource
Fixed mysql bug: Currently using psql