Added all the admin database functionalities. Nothing has been tested yet.