Merge pull request #11763 from schneems/schneems/create-sqlite3db

Create sqlite3 directory if not present
Conflicts:
	activerecord/CHANGELOG.md
config[:database] should be a string

This change was breaking the Railties tests. See
https://travis-ci.org/rails/rails/jobs/9865969