Finished videos 29 & 30

Implemented code in database.php & comments.
finished videos 31 & 32

Implementing query function & Refectory code to use database class