added 500 response handler
added info page handler
updated read and write function to support struct
started http handler
added functions to read and write urls to the db
modified opendb function to also open the word list
modified fatal error function to close db before exiting