Sync Database with Core

Signed-off-by: Salja <salja8840@gmail.com>