psr-0 refacoring (adapt connection adapters to psr-0)
added some methods to model
bug fix