Added basic implementation of trajectory analysis. RMSD plots are now displayed. Large db changes, migrated to using postgresql.