Various changes

+ save to file
+ generate full db
+ added datatype support
+ more