Change data init method to create database if it is not exist