Added missing assertation
Added phpDoc to travis config file
Code cleanup
Added database adapter. [INCOMPLETE]