add chech database exists into general setup