Fixes database creation.

Signed-off-by: crynobone <crynobone@gmail.com>