Fix database to use sqlite3
Only call attr_accessible if it's rails 3
Get rid of deprecated find(:first)