Implemented basic database functionality. Contains functions for connecting, querying and adding locations.