db storage wrapper