implement database store (inclusive database hide and ok/apply button store)

Signed-off-by: anti-freak <antifreak2011@gmail.com>