save some database queries