replace mongo with postgresql, edit path