Refactored, fixed problems with RequestDB