new SQL script, cleanup, Media classes