Added authentication for the databse