guard against nulls
mod scheduler for sqlite3