An easy way to count your network traffic and store it into the database