app now gets data from database, added php scripts