Downgrades foundation-rails gem, fixes database configuration