corrected insert db method to find and create. test cron job