Tartaros: Fixed some bugs in Database api. Added limited support for building licensing test off of a validation test.