Feature migration fixes

Fixed issues 51 and 52 that I added. The 0002 migration that shortened photo titles caused uniqueness conflicts and lacked transaction commit between the data and schema migration which caused it to fail when using Postgresql.

These changes were based off of the 2.5 tag and I bumped the version number to 2.5.1.