Add tests for multiple users and databases