Refactor & Fixes

Converted to maven
Refactored most code
Centralised db calls
Fixed sign errors
Fixed tasks to async
Various other bug fixes