Updated to make links work.

Updated Pixtr files to link it all up.
Pixtr code all converted to ActiveRecord

Changed all the pg code to ActiveRecord.