public ResultSet selectQuery(String query){
    	
    	try
        {
            stmt = conn.createStatement();
            query.replace("TABLE_NAME", table_name);
            results = stmt.executeQuery(query);
            stmt.close();
        }catch (SQLException sqlExcept)
        {
            sqlExcept.printStackTrace();
        }
    	return results;
    }