setting data base and smtp