Adds support for assigning single user to multiple databases. Closes #630