Working app/db integration