Added php code for db connection.
Added commenting and documentation to header and book list