Adding database functionality in storage for sigmas