app import with db connection changed