Split DBFramework from sample implementation

DBFramework was intertwinted with an actuall project. This submit moves
a lot of files around for the sake of splitting the framework from the
application