* migrate database if app.ini found * replacing hard-coded user id by env variable * Update per @zeripath's feedback