Added cp_opj info into the sdb and other stuff

Fix a the class name null bug.
Set license to Apache.
Add some basic support for writiing infos to sdb. 
CP Info is a primitive serialization that describes the file location, type, and values (dependant on type) in a dotted string format.