Get the database from the SMW store factory.