refactored code,
made connection variable in config.php
finished video 31-32