Angular - php - mysql data synchronization