Cleanup: safety script added, README updated and proper SQL comments