database controller updated