Fix setEnabledClients()

SQL query was wrong
Remove table and functions for enabled client ids