package nuclibook.server;

import com.j256.ormlite.jdbc.JdbcConnectionSource;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
import nuclibook.constants.C;
import nuclibook.models.User;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class SqlServerConnection {

	/* singleton pattern */

	private SqlServerConnection() {

	}

	private static ConnectionSource connection = null;

	public static ConnectionSource acquireConnection() {
		if (connection == null) {
			try {
                connection = new JdbcConnectionSource(C.MYSQL_URI);
                ((JdbcConnectionSource)connection).setUsername(C.MYSQL_USERNAME);
                ((JdbcConnectionSource)connection).setPassword(C.MYSQL_PASSWORD);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

		initDB(connection);

		return connection;
	}

    public static void initDB(ConnectionSource connectionSource) {
		try {
			TableUtils.createTableIfNotExists(connectionSource, User.class);
		} catch (SQLException e) {
			// TODO deal with exception
		}
	}
}

package nuclibook.server;

import com.j256.ormlite.jdbc.JdbcConnectionSource;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
import nuclibook.constants.C;
import nuclibook.models.User;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class SqlServerConnection {

	/* singleton pattern */

	private SqlServerConnection() {

	}

	private static ConnectionSource connection = null;

	public static ConnectionSource acquireConnection() {
		if (connection == null) {
			try {
                connection = new JdbcConnectionSource(C.MYSQL_URI);
                ((JdbcConnectionSource)connection).setUsername(C.MYSQL_USERNAME);
                ((JdbcConnectionSource)connection).setPassword(C.MYSQL_PASSWORD);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

		initDB(connection);

		return connection;
	}

    public static void initDB(ConnectionSource connectionSource) {
		try {
			TableUtils.createTableIfNotExists(connectionSource, User.class);
		} catch (SQLException e) {
			System.out.println(e.getStackTrace());
			// TODO deal with exception
		}
	}
}

Print stacktrace