Add support for SQL state backend.