Clean up database tasks