start implementing the database query classes
add postgresql cmake file for the benefit of cmake 2.8.0 on ubuntu lucid