clean up

- cleaned up some stuff
- prepared path finding
- prepared php test for future db communication in comparsion to
mongoose