Add data namespace

Move all the object that just represent the data from the db to its own namespace.