Updated Rails to 3.2.11

Updated Ruby on Rails to 3.2.11 as this is a critical update.
Also fixed database config from a while ago.