change database construct

Signed-off-by: murusu <murusu0.0@gmail.com>