[BIG reorganization] Move DbModule to IDSA project, change namespaces.