add select all to database controller.