The pull request of many changes

- PostgreSQL -> MySQL
- fixes/updates
- clicking a graph on graphs page or dashboard page will now retain the current time interval