Refs #31, fixes a few small bugs in queries.
Refs #31, replaces bindParam with bindValue globally.

Using bindParam was causing type errors where an int would be bound to a PDOStatement and then after execution it would be
converted to a string. This caused notifications to be sent of users upvoting their own posts because the === failed due to
types being different.