changed checkhost line for a db check instead