Fix peekJob function for sqlite3