Updated db api and models for check results