Database query parser and engine.