Added inserts to database tables

Inserts into location table and traffic_item table. Doesn't check for
repeated traffic ids yet, will do that later. Fixed the problem with
date timestamp formats. Working on occurring_traffic table using
matching.