Fixed create db error