Using SQLite to eval expressions