separated layout code, added PDO connection to config, query for currently checked out books