Either there or I think whapps_util or wh_util have similar `is_*_db/1` functions.