Log added.
Trying to make things a little safer.
Starting to change to prepared statements.