Update LoginPanel.java

Moved the database connection from the log in to the main panel