Added project to Intellij and fixed mysql depricated error