Interface layer for localStorage and sessionStorage dbs