added a constants singleton class, isolated database, made all REST
operations work.