Use database for clients

This should be a config option in config.py