Fixed multiple incorrect use of PreparedStatements

I used annotations like "i?" in the prepared sql query, which when
executed would result with two apostophes.

I also sometimes forget the in prepared statements the first ? is at
index 1 not 0.