Updates to DB routing.

1. Added in db routing logic.
2. Tested db routing logic. We are now able to add and search for items in the database.