Add custom parser support for Stratum query
Migrate to PostgreSQL