metadata store in db