changed mongodb for mongoose for the schema support.
implemented a simple form of mvc routing