Convert database tasks to invoke