Bug fix creating a new DB

Signed-off-by: pgnunes <pgh.nunes@gmail.com>
Added new boolean WS - checkKey

Signed-off-by: pgnunes <pgh.nunes@gmail.com>