Lot of changes in aim for better future handling

New rule of thumb:
If you have to change it in more than one file you are doing it wrong.
Changes:
- Added new handler for tables creation and data
--- Both tab sections are now unified inside single function
--- Changed database connection and querying method
- Removed 2 old table procedural structure files
- Fixed broken css and moved it away from frontend files
- More code styling/formating changes