ENH: Use argument substitution fo DB inserts

Using a dictionary of key-value pairs allows us to sanitize the inserts
and don't have to worry about statements with weird characters.