bug fixes
database cleaned.