map and hist working

Fixed issues raised by Jose, writing to database now works well. Now
using ggplot2 for plotting. I have  a map and a histogram, time to write
a new blog post