DB tests are enabled for Travis and fixed to be passing [Work-In-Progress]

This is a summarizing PR for #261  #272  #273  #274 where you can find more detailed description of individual changes.