0b8edef82c
* Use a singleton pattern in the database class to re-use the database object inside the permission_exists function.