Revert "make the database reference for orders"

This reverts commit be0add0f5b381e966f5d93f788fb821afe67b3de.