Refactor/tuple3

Store Tuple3 in mapdb and rem global cols

See the messages of the individual commits for more information.