casting all *_id fields to integers so hopefully postgres will play nice (: