* Some fixes on filestatedb