Added support for a max query in the postgresql
Merge branch 'master' of https://github.com/delakanda/wyf into HEAD