Fixed some more prepared statement stuff