changed db status checker