Create SQL_check_geo_consistency

Simple functions to check multiple parameters on geometrical data that can be introduced in a database, resolves simple geographical rules and verifies if uploaded values already exists.