updated config snipets for database and smtp