db query return types