updated frontend, refactored
added new table, functions