file and dir into db

working on pulling from db needs to be integrated with server