Added basic implementation of trajectory analysis. RMSD plots are now di...

...splayed. Large db changes, migrated to using postgresql.