insert to db only if there's traffic