How I learned to write raw SQL