Finalized SQLWriter, and bugfixes

SQLWriter is now capable of writing everything.
Fixes small bugs where proj was called projekt in some cases.