Simple aspect for writing entityContext to database