how does the app connect to the database?

are your stats up to date - it can make a different when using binds instead of literals