Basic PDO setup to insert and update records in the database