public void set_db_conn_state(boolean state) {
		
		if (state == false && db_conn_state == true) {
			try{
				db_conn.close();
				db_conn_state = state;
			} catch (Exception e) {
				e.printStackTrace();
			}
			
		}
		else if (state == true && db_conn_state == false) {
			db_conn_state = true;
			connect_loki_db();
		}
			
			
		return;
				
	}