adding sequence DB functionality