More exception handling
Split up core.py into db and gpx