add method that converts an sqla object into a dict, so it can be serialized to json