Updates for Rails 4 version.
Troubleshoots SQLite3 issue.