Adding the view db-field. and bug fixes for the admin class