Finished control logic for parser. Added small changes to relation and database