Utility functions for SQLite
