Support authentication by database