finished database controller testing