Added an environment and database layer.