- added db check