add parameter for choosing which database for authentication
Merge pull request #20 from javiermon/master

add parameter for choosing which database for authentication