Solved problem with sqlite3 gem