added environment based database