Added basic database functionality via PDO