fix warning: adding 'int' to a string does not append to the string

This fixes errors when trying to do inserts and lookups on the same connection.