context, public db and err