Fixed PostGIS compatibility issue

An "or" for PostGIS or PostgreSQL was left out in the function get_db_prep_value(). PostGIS should now be fully supported.