Fixed errormessage not showing the error
Fixed dbpath bug, added interval buttons to statistics view
Added functionality for selecting time interval