Writing Rules for SQL Injection and Analyzing Apache Logs for SQLi