sanity check on database connection; may break temporarily
somehow all that db connection code was unnecessary
remove deprecated func