(*) Fixes.

(*) Move DB constants to global defines.