Small fixes of DBcontroller