DB entries can be received from php file. There is still an issue that
the data is undefined in javascript files