the php script used by the app to pull from the database