remove double log
move db uri to the controller