Create adminfunctions.php

A bunch of admin functions to update the table display on the admin page

still to do:functions to limit display, functions to edit database