trying to write into database
almost complete final test remaining
primary key insertion still not working