Added a simple database and environment system.