Added semicolons to failing SQL statements, fetched content type correctly when creating ping row