Update adminfunctions.php

changed functions to be more versatile, added in some selection

still have to add edit/delete functions and most of the select table functions