More intelligent selects
Added foralls

Feature is slightly incomplete - pqxx does not actually give me list
access to arrays passed back, so for the moment you get a string with
enclosing curly braces and comma delimited values.