Update DB.java

Added a second method that lets the DB port, username, and password to be configured instead of being static and requiring a code change within this class.