Revise functions to support postgres >= 9.2
Expose submission date as a settable item in the API