
public class DatabaseApp {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}


public class DatabaseApp {

	public static void main(String[] args) {
		DatabaseApp app = new DatabaseApp();
		try {
			app.setup();
			app.run();
		} finally {
			app.cleanup();
		}
	}
	
	public void setup() {
		
	}
	public void run() {
		
	}
	public void cleanup() {
		
	}

}

Add methods to make main class non-static :)
Add methods to make main class non-static :)