implement jobs logged to database