Correct save/load from/to DB
Func tab UI
Some cleanup
Initial database script