ajax reading from external bd, proof-of-concept