Remove the custom mysqli adapter. There is no need since lib:database.adapter.mysqli is now a multiton.
Don't include the view and layout in the route if the information is already in the page variable.