raise more helpful error when no database config is found