- amended queries for viewing users and roles, to crrectly filter ;n/a' values
- added support function to check if a user exists in the database
- create check on connect event, to test if any of the app roles don't match with a BD role. In case they don't the app gives the user the option, of syncing the two permission systems on-the-fly.
- note: there must be another check on the login of the main app, and maybe a ticket could be raised to make this function available on the main menu (if relevant)