Db editor

First milestone reached. 
Can read to, and write from the DB. Basic object types are implemented.