moved sqlite3 connection to worker init