First cut at db abstraction.
Update DbLayer interface and add more tiedot implementation.