Some SQL stuff, added a class

Turns a location into a string for storaage in SQL