Actually inserting and exiting.

A better way to exit on MySQL connection failure. Oh, and I actually
read the bind_param manual, so now it actually binds correctly and
inserts.