Database changed into document storage