Fix inserting of signatures to database.

refs #7645