adapt controllers to database changes