Fixed SQL to create `logs` table.