Fix gem dependencies and remove sqlite3 gem from production