added date time. completed video 31 with opening a connection and closing it, and storing data into $query