Fixing some SQL statements and adding setting table
CSRF, setting and small bits and bobs