API V2

-Reforked Project
-sorted Code
-changed SQL Code after refactoring
-added descriptions to the api functions
-added basic apierror class