added missing spaces

With the missing spaces, the helper functions for insert and replace were creating nonvalid SQL statements.