[Deck Manager] Moved all DBServer client items to common lib.

#1 moved all shared DB logic to the common lib so that Deck Manager and
the test app can use it.