Add support for storing results in an SQL database