started using db for region storage