Docs, Improvements to Database function

Continuing work on documenting the Database class.

Changed get_table_attributes function to accept a $table argument (null by
default), as well as improved the logic of the function such that when a null
$table argument is given and a null value is stored for the $selected_table
the function will return null.