connection to db

added connection code to php script and credentials. using pdo.