Improved mapper interface, added params option to buildQuery()