Added a logger and made some changes to the database
-.-