LOTS of queries changed to prepared statements