updated to clean database