Added the database handerling and remove the library loader due to eclipse including the library folder on export
Fixed errors with mysql syntax and errors with duplicate data.