cleaned up db and add command to cleanup db