init database if database is not exsit