code complete for db  module