added db persistence and delete taks.