Do not override existing APP_ROOT value.
Add APP_DATABASE environment parameter to set database location.
Verify database file exists before trying to open it. Otherwise sqlite will create an empty database!