Hibernate server connection timeout fixed

Changed to another protocol, so hibernate wont lose connection with the
database.