Fix bug with magnetic variation, security update

Was previously inserting speed instead of magnetic variation... Oops!
Fixed that and changing to prepared statements for security. Also
suppress oops messages, we don't need to know that happens since the
vector is thread safe.