Selects data from a database and then generates insert/update/delete statements.