Merge pull request #24 from ydkn/sqlite3_fix

Sqlite3 compatibility fix
rails 4 compatibility