Switch from python to postgresql for elevation profiles