app: added db class

put in posttoprase in historydata "count" to check also
app: setted the time format