add status database helper.
move common utility to new package.