Ensuring identifier is always an integer

This fixed a bug I was getting when editing a file, where the identifier was getting set to a string. This caused a 'no implicit conversion of String to Integer' bug in the #write method when calling connection.lo_open. On a side note, the file uploader was being used on an ActiveAdmin form (not sure if that had something to do with it).