clean up ALOT. change some security stuff

remove lots of unused files. changes for database-stuff