fixed up database stuff. added 'delete' capability