add app_name val and create database automatically