added full database authentication