remade settings to data base

-remade settings to data base
-add column graph
-fix bugs with settings page
-add save last active tab
make normal graph