PHP connection to a DB

It is a file to connect the application phonecat to a MySQL DB to change
the phones.json to a DB