first commit, simple plotting and writing some stuff to the db