Added basic functionality into database object to interact with and add to a MySQL database, also made unique key for dependency table of the parent and descendant.