ripped out prepared statements, regrettably. but it wasn't working with them, more confident at getting it working without them