bug fixes, added plot comments, usage of pdo sqlite