PHP, SQL and AMQP checks