created database and updated init