Use this - Connection conn = new Database().getConnection();
instead of this Connection conn = DatabasegetConnection(); in your
classes to get connection objects.