SQLite on Rails: The how and why of optimal performance