added database configuration, postgresdriver and address mapping.