add parameter for choosing which database for authentication