added db check on start