working backend

All of the pages that are required to manage the database are here.
The only thing left to add is a comment field.
That will happen later once I get file output